package org.xteam.sled.semantic;

public class BitNumbering {
	
	private boolean isMost = false;
	private boolean isUsed = false;
	private boolean isSet  = false;

	public Range make0LSB(int size, Range r) {
		if (isMost)
			return new Range(size - r.high(), size - r.low());
		return r;
	}

	public void setUsed() {
		isUsed = true;
	}

	public boolean isUsed() {
		return isUsed;
	}

	public boolean isSet() {
		return isSet;
	}

	public void set(boolean isMost) {
		isSet = true;
		this.isMost = isMost;
	}
}
